<?php

namespace App\Http\Controllers\Home;

use App\Http\Controllers\Controller;
use App\Model\Learn;

class LearnController extends Controller
{
	public function index()
	{
		return view('learn.index');
	}

	public function lists()
	{
		$lists = Learn::orderBy('sort','desc')->get();
		return view('learn.lists')
			->with('lists',$lists);
	}

	public function news($id)
	{
		$learn = Learn::find($id);
		return view('learn.news')
			->with('learn',$learn);
	}

	public function basis()
	{
		return view('learn.basis');
	}
}